package com.tourlaid.mamagerment.mapper

import com.tourlaid.mamagerment.entity.Area
import org.apache.ibatis.annotations.Param

/**
 * Created by xiaoyongge on 2017/7/19.
 */

interface AreaMapper {

    fun getById(id: Long): Area?;

    fun insert(record: Area);

    fun getByAreaName(@Param("areaName") areaName: String): Area?

    fun queryByParentId(@Param("parentId") parentId: Long): List<Area>?

    fun  queryByParentIdList(@Param("parentIdList")parentIdList: List<Long>): List<Area>

}